<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
</head>
<style>
  .box{height:100px;width:100px;border:15px solid black;
    animation: changebox 2s ease-in-out   1 normal paused;
  }
  .box:hover{
    animation-play-state: running;
  }
  @keyframes changebox {
    10% {  background:red;  }
    50% {  width:80px;  }
    70% {  border:15px solid yellow;  }
    100% {  width:180px;  height:180px;  }
  }
</style>

<body>
<div class="box"></div>
</body>
</html>
